package com.key.win.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.key.win.base.model.MybatisID;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;

@ApiModel("权限实体")
@Data
@TableName("sys_permission")
@EqualsAndHashCode(callSuper=true)
public class SysPermission extends MybatisID {
    @ApiModelProperty("权限")
    private String permission;
    @ApiModelProperty("名称")
	private String name;
    @ApiModelProperty("角色Id")
	@TableField(exist=false)
	private String roleId;
    @ApiModelProperty("权限Id集合")
	@TableField(exist=false)
	private Set<String> authIds;

}
